/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;

int main_1001_2()
{
    int a,b,sum=0;
    scanf("%d %d",&a,&b);
    sum=a+b;
    if (sum<0)
    {
        sum=-sum;
        printf("-");
    }
    if (sum>=1000000)
    {
        printf("%d,%03d,%03d",sum/1000000,sum%100000/1000,sum%1000);
    }
    else if (sum>=1000)
    {
        printf("%d,%03d",sum/1000,sum%1000);
    }
    else
    {
        printf("%d",sum);
    }
	return 0;
}
